package org.example.pojo;

public class PieceSchedule {
    private int scheduleno = 0;
    private int classno = 0;
    private int courseno = 0;
    private int teacherno = 0;
    private int roomno = 0;
    private int section = 0;
    private int finalpri = 0;


    public PieceSchedule() { }

    public PieceSchedule(int scheduleno, int semester, int classno, int courseno, int teacherno, int roomno, int section, int finalpri) {
        this.scheduleno = scheduleno;
        this.classno = classno;//使用courseno和classno判断pieceSchedule的属于
        this.courseno = courseno;
        this.teacherno = teacherno;
        this.roomno = roomno;
        this.section = section;//教师
        this.finalpri = finalpri;//最终优先级，基于课程和人数
    }

    public int getClassno() { return classno; }

    public void setClassno(int classno) { this.classno = classno; }

    public int getCourseno() { return courseno; }

    public void setCourseno(int courseno) { this.courseno = courseno; }

    public int getTeacherno() { return teacherno; }

    public void setTeacherno(int teacherno) { this.teacherno = teacherno; }

    public int getRoomno() { return roomno; }

    public void setRoomno(int roomno) { this.roomno = roomno; }

    public int getFinalpri() { return finalpri; }

    public void setFinalpri(int finalpri) { this.finalpri = finalpri; }

    public int getScheduleno() {
        return scheduleno;
    }

    public void setScheduleno(int scheduleno) {
        this.scheduleno = scheduleno;
    }

    public int getSection() {
        return section;
    }

    public void setSection(int section) {
        this.section = section;
    }

    @Override
    public String toString() {
        return "Schedule{" +
                "scheduleno=" + scheduleno +
                ", classno=" + classno +
                ", courseno=" + courseno +
                ", teacherno=" + teacherno +
                ", roomno=" + roomno +
                ", section=" + section +
                ", finalpri=" + finalpri +
                '}';
    }
}
